
<?php

/**
 * @author kevin
 * @date 2016-01-16 14:00:00
 * @desc 配置
 */

if (!defined('IN_ECS'))
{
    die('Hacking attempt');
}
$version = '1.0';   //版本号

if ($_POST['api_version'] != $version)      //网店的接口版本低
{
	api_err('0x008', 'a low version api');
}
if(empty($_POST['st'])){
	api_err('0x008', 'param st is Missing');
}
if($_POST['st'] == 'main'){
    $data['telephone'] =  $_CFG['service_phone'];
    $data['serviceUrl'] =  'http://qixi.sysfrend.com/wap/article.php?act=detail&a_id=6';
    $data['wechatlogin'] = 1;
    $data['alipaylogin'] = 1;
    $data['platformlogin'] = 0;
}
//st参数错误
if(!isset($data)){
	api_err('0x008');
}
//返回数据
data_back($data, '', RETURN_TYPE);
